import { request } from '@/utils/request.js'

// 登录注册
export function apiWxMiniMobileRegister(data = {}) {
	return request({
		url: "/login/wxMiniMobileRegister",
		data,
		method: "post"
	})
}

// 获取用户信息
export function apiUserInfo(data = {}) {
	return request({
		url: "/user/getUserInfo",
		data
	})
}

// 修改用户信息
export function editUserInfo(data = {}) {
	return request({
		url: "/user/editUserInfo",
		data,
		method: "post",
	})
}

// 账号注销
export function logoutAccount(data = {}) {
	return request({
		url: "/logoutAccount/apply",
		data,
		method: "post",
	})
}

// 设置、忘记、修改支付密码获取验证码
export function userPayPassword(data = {}) {
	return request({
		url: "/smsVerify/userPayPassword",
		data,
		method: "post",
	})
}

// 修改支付密码
export function setPayPassword(data = {}) {
	return request({
		url: "/user/setPayPassword",
		data,
		method: "post",
	})
}

// 获取充值面额列表
export function userRechargeGive(data = {}) {
	return request({
		url: "/userRechargeGive/list",
		data
	})
}

// 提交充值金额
export function userRechargeCreate(data = {}) {
	return request({
		url: "/user_recharge/create",
		data,
		method: "post",
	})
}

// 佣金充值为金额
export function commissionToFund(data = {}) {
	return request({
		url: "/user_fund/commissionToFund",
		data,
		method: "post",
	})
}

// 余额账单明细
export function logs(data = {}) {
	return request({
		url: "/user_fund/logs",
		data
	})
}

// 我的积分明细列表
export function integralRecordList(data = {}) {
	return request({
		url: "/integralRecord/list",
		data
	})
}

// 我的收藏列表
export function apiCollectionList(data = {}) {
	return request({
		url: "/collectionList",
		data
	})
}